#include <iostream> 
#include "Rational.h"
using namespace std;

int main()
{
   Rational c( 2, 4), d( 1, 8 ), x;
   c.printRational();
   cout << " + ";
   d.printRational();		
   x = c.addition( d );
   cout << " = ";
   x.printRational();
   cout << "\n";
   x.printRational();    
   cout << " = ";
   x.printRationalAsDouble();
   cout << "\n\n";
   c.printRational();
   cout << " - ";
   d.printRational();
   x = c.subtraction( d );       
   cout << " = ";
   x.printRational();
   cout << "\n";
   x.printRational();
   cout << " = ";
   x.printRationalAsDouble();
   cout << "\n\n";
   c.printRational();
   cout << " x ";
   d.printRational();
   x = c.multiplication( d );                         
   cout << " = ";
   x.printRational();
   cout << "\n";
   x.printRational();
   cout << " = ";
   x.printRationalAsDouble();
   cout << "\n\n";
   c.printRational();
   cout << " / ";
   d.printRational();
   x = c.division( d );                            
   cout << " = ";
   x.printRational();		
   cout << "\n";
   x.printRational();
   cout << " = ";
   x.printRationalAsDouble();
} 
